package behavioral_pattern.chain_of_responsibility_pattern;

/**
 * 审批者类：抽象处理者
 */

public abstract class Approver {

    protected Approver approver;

    protected String name;
    protected Approver(String name){
        this.name = name;
    }

    //设置后续
    public void setApprover(Approver approver){
        this.approver = approver;
    }
    //抽象请求处理方法
    public abstract void processRequest(PurchaseRequest request);
}
